const XSR = require('../../lib/ajax.js');
const API = require('../../api/vendorlist.js');
const MK = require('../../lib/makeurl.js')
Page({
  data: {
    star:[1,2,2,2,2],
    tabs: [{
        title: '附近',
        icon: '',
        content: null
      },
      {
        title: '新入',
        icon: '',
        content: null
      },
      {
        title: '热门',
        icon: '',
        content: null
      }
    ]
  },
  onLoad(options) {
    let _data = {
      pageNum:1,
      pageSize:20,
      sortBy:1}
      console.log(MK.makeUrl(API.shopList, _data))
    XSR.ajax(MK.makeUrl(API.shopList, _data)).then(function(res) {
      console.log('111=>', res)
    })
  },
  onReady: function() {

  },
  onShow: function() {

  },
  onHide: function() {

  },
  onPullDownRefresh: function() {

  },
  onReachBottom: function() {

  },

  onShareAppMessage: function() {

  }
})